home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
PRNTTEXT.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
2KB
|
70 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_Print_Text( cFileName, nLinesPerPage, nPageNum, cExcludeText ) --> NIL
PARAMETERS:
cFileName : Text File to Print
nLinesPerPage : Lines per page (Default 55)
nPageNum : Beginning Page Number
cExcludeText : Text criteria to Exclude Lines
SHORT:
Print text to printer (no formatting).
DESCRIPTION:
_Print_Text() prints a DOS text file (Source Code, etc). If the
nLinesPerPage argument is not supplied, the default is 55 lines per page.
If the nPageNum argument is supplied, page numbering begins with that
value, and the internal page number is set to that value also
(subsequent calls to _Print_Text() will continue with that page number).
If nPageNum is NOT supplied, the function looks first for it's internal
page number and if present, uses it. If the nPageNum argument is not
supplied and there is no internal page number yet established, page
numbering begins with 1 and 1 becomes the internal page number.
The internal page number is stored in PAGENUM.DAT, thus allowing subsequent
calls to _Print_Text() to maintain page numbers across multiple files. To
reset page numbering, either specify the new beginning page number in
nPageNum, or deleted the PAGENUM.MEM file.
If cExcludeText is not specified, all lines of text are printed.
If cExcludeText IS specified, any line in the input file that contains the
text specified in cExcludeText, is skipped.
This function makes no printer setting changes. Any printer settings
required must be set manually before printing.
_Print_File() and _Print_Text() use the same PAGENUM.MEM file and
can therefore be used together without losing page numbering
NOTE:
_Print_Text() is the generic text printer equivalent of _Print_File().
EXAMPLE:
_Print_Text('File1.txt',,1)
_Print_Text('File2.txt')
Result: File1.txt is printed, beginning page numbers at 1, and then
FILE2.TXT is printed, CONTINUING page numbers from FILE1.TXT (whatever
that page number may be).
_Print_Text('File1.txt',,1)
_Print_Text('File2.txt',,1)
Result: FILE1.TXT is printed, beginning page numbering at 1, and
then FILE2.TXT is printed, ALSO beginning page numbering at 1.
******************************************************************************/